package com.commerce.common;

import java.util.List;

import lombok.Data;

@Data
public class JsonResult {

	private String code;
	private String msg;
	private String count;
	private List data;

	private JsonResult(String code, String msg, String count, List data) {
		this.code = code;
		this.msg = msg;
		this.count = count;
		this.data = data;
	}

	public static JsonResult returnJsonResult(String code, String msg, String count, List data){
		return new JsonResult(code, msg, count, data);
	}
}
